//
//  CaseProgressViewController.m
//  yonghu
//
//  Created by 浪尖渝力 on 2018/1/24.
//  Copyright © 2018年 com.DJS. All rights reserved.
//

#import "CaseProgressViewController.h"
#import "CaseProgressView.h"

@interface CaseProgressViewController ()
@property(nonatomic,strong)CaseProgressView *aView;
@end

@implementation CaseProgressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"案件进度";
    
    _aView=[CaseProgressView new];
    [self.view addSubview:_aView];
    [_aView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.left.right.top.mas_equalTo(0);
    }];
   
    _aView.viewController=self;
    [self LogingView];
    
}
-(void)LogingView{
    
    
    NSDictionary *userDic = [NSKeyedUnarchiver unarchiveObjectWithFile:_userModelFile];
    NSString *token=[userDic objectForKey:@"token"];
    NSNumber *numBer=[userDic objectForKey:@"user_id"];
    NSString *user_id=[NSString stringWithFormat:@"%@",numBer];
    NSString *litigation_id=[NSString stringWithFormat:@"%@",_litigation_id];
    NSDictionary *dic=[NSDictionary dictionaryWithObjectsAndKeys:user_id,@"user_id",litigation_id,@"litigation_id",token,@"token",@"0",@"user_role", nil];
    [ZQTools AFNPostDataUrl:@"user/Litigation/schedule_list" Dict:dic andTableView:nil andViewController:self andSuccessBlock:^(id responseObject) {
        _aView.titleArr=responseObject;
      [_aView creatView];
    } anderrorBlock:nil];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
